body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{
	padding:0;margin:0;
}
h1,h2,h3,h4,h5,h6{
	font-weight: normal;
}
input,button,select{
	border: none;
	outline: none;
}
ol,ul,dl,li{
	list-style: none;
}
body{
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: #f0f0f0;
}
a{
    text-decoration: none;
    color: white;
}
img{
    display: inline-block;
    vertical-align: middle;
}
.clear_fix::after{
    content: ".";
    display: block;
    clear: both;
    font-size: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
}

.main{
    width: 1200px;
    margin: 0 auto;
}
//头部
.header{
    height: 40px;
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    a{
        line-height: 40px;
        font-size: 12px;
    }
    &_left{
        float: left;
        a{
            margin: 0 14px;
        }
        li{
            float: left;
            a{
                &:hover{
                    color: #f4c332;
                }
            }
        }
    }
    &_right{
        float: right;
        #loginUser{
            width: 90px;
            height: 40px;
            text-align: center;
            float: left; //必须float，否则兄弟就塌了
            display: none;
            position: relative;
            .userInfo{
                text-align: center;
                background-color: #333;
                display: none;
                top: 40px;
                width: 100%;
                position: absolute;
                a{
                    line-height: 35px;
                }
            }
            &:hover{
                .userName a{
                    color: black;
                    border-radius: 5px 5px 0 0;
                    background-color: #fff;
                    -webkit-border-radius: 5px 5px 0 0;
                    -moz-border-radius: 5px 5px 0 0;
                    -ms-border-radius: 5px 5px 0 0;
                    -o-border-radius: 5px 5px 0 0;
                    display: inline-block;
                    height: 40px;
                    line-height: 32px;
                    width: 90px;
                    margin: 4px 0 5px 0;
                }
                .userInfo{
                    display: block;
                    background-color: #fff;
                    a{
                        color: black;
                        &:hover{
                            color: #ff9800;
                        }
                    }
                }
            } 
        }
        li{
            float: left;
            &:first-of-type,&:nth-of-type(2){
                a{
                    &:hover{
                        color: #f4c332;
                    }
                }
            }
            &:nth-of-type(3){
                position: relative;
                a{
                    display: inline-block;
                    height: 40px;
                    line-height: 32px;
                    padding: 0 15px;
                    margin:4px 0 5px 0 ;
                    .qrcode{
                        position: absolute;
                        display: none;
                        width: 140px;
                        height: 80px;
                        background-color: white;
                        img{
                            width: 60px;
                            height: 60px;
                            margin: 10px;
                            float: left;
                        }
                        p{
                            font-size: 12px;
                        }
                    }
                    &:hover{
                        background-color: white;
                        color: black;
                        border-radius: 5px 5px 0 0;
                        -webkit-border-radius: 5px 5px 0 0;
                        -moz-border-radius: 5px 5px 0 0;
                        -ms-border-radius: 5px 5px 0 0;
                        -o-border-radius: 5px 5px 0 0;
                        .qrcode{
                            display: block;
                            top: 44px;
                            right: 0px;
                            box-shadow: 0px 1px 3px #9e9e9e;
                        }
                    }
                }
            }
            &:nth-of-type(4){
                position: relative;
                a{
                    display: inline-block;
                    height: 40px;
                    line-height: 32px;
                    padding: 0 15px;
                    margin:4px 0 5px 0 ;
                    .minicart{
                        position: absolute;
                        display: none;
                        width: 300px;
                        height: 75px;
                        background-color: white;
                        line-height: 75px;
                        text-align: center;
                        font-size: 12px;
                    }
                    &:hover{
                        background-color: white;
                        color: black;
                        border-radius: 5px 5px 0 0;
                        -webkit-border-radius: 5px 5px 0 0;
                        -moz-border-radius: 5px 5px 0 0;
                        -ms-border-radius: 5px 5px 0 0;
                        -o-border-radius: 5px 5px 0 0;
                        .minicart{
                            display: block;
                            top: 44px;
                            right: 0px;
                            box-shadow: 0px 1px 3px #9e9e9e;
                        }
                        
                    }
                    &::before{
                        font-weight: bold;
                    }
                    
                }
            }
        }
        a{
            margin:0 12px;
        }
        .iconfont{
            font-size: 32px;
        }
    }
}
//logo和搜索框
.headbox{
    background-color: white;
    height: 100px;
    width: 100%;
    margin-top: 40px;
    &_inner{
        overflow: hidden;
        height: 100%;
        #logo{
            float: left;
            height: 100%;
            margin-left: 10px;
            line-height: 90px;
        }
        .head_nav{
            float: left;
            font-size: 18px;
            line-height: 100px;
            li{
                float: left;
                a{
                    color: #333;
                    margin-left: 50px;
                    font-weight: bold;
                    transition: all .3s ease-in-out;
                    -webkit-transition: all .3s ease-in-out;
                    -moz-transition: all .3s ease-in-out;
                    -ms-transition: all .3s ease-in-out;
                    -o-transition: all .3s ease-in-out;
                    &:hover{
                        color: #f4c332;
                    }
                }
            }
        }
        .head_right{
            float: left;
            margin-left: 200px;
            // line-height: 100px;
            .search{
                overflow: hidden;
                margin-top: 30px;
                // border: 1px solid #f4c332;
                border: 1px solid #249e4c;
                border-radius:18px;
                -webkit-border-radius:18px;
                -moz-border-radius:18px;
                -ms-border-radius:18px;
                -o-border-radius:18px;
                input[type="text"]{
                    height: 34px;
                    width: 360px;
                    float: left;
                    text-indent: 2em;
                    color: #f4c332;
                }
                input[type="submit"]{
                    height: 34px;
                    width: 60px;
                    float: left;
                    box-sizing: content-box;
                    cursor: pointer;
                    background:#fff url('../imgs/search.png') no-repeat center;
                    background-size: 26px;
                }
            }
            ul{
                overflow: hidden;
                margin-left: 30px;
                li{
                    float: left;
                    a{
                        color: #666;
                        padding: 0 7px;
                        font-size: 12px;
                        &:hover{
                            color: #249e4c;
                        }
                    }
                }
            }
        }
    }
}

//联系方式
.connect{
    background-color: #fff;
    height: 310px;
    border-top: 1px solid #e7e7e7;
    &_inner{
        padding-top: 50px;
        box-sizing: border-box;
        overflow: hidden;
        .con_left{
            width: 900px;
            float: left;
            .con_item{
                width: 150px;
                float: left;
                &:first-of-type{
                    width: 400px;
                    p{
                        width: 360px;
                        line-height: 24px;
                        padding-bottom: 20px;
                        border-bottom: 1px solid #9e9e9e;
                        text-indent: 2em;
                    }
                }
                &:nth-of-type(2){
                    .con_item_list{
                    
                        li{
                            &:first-of-type,&:nth-of-type(2){
                                font-weight: bold;
                                color: #ff9800;
                            }
                        }
                        
                    }
                }
                h3{
                    font-weight: bold;
                    margin-bottom: 20px;
                }
                div{
                    margin-top: 10px;
                    span{
                        margin-right: 20px;
                        position: relative;
                        &:nth-of-type(2):hover::after,&:nth-of-type(3):hover::after{
                            display: block;
                            position: absolute;
                            content: "";
                            left: -47px;
                            right: 0;
                            bottom: 30px;
                            width: 120px;
                            height: 120px;
                            box-sizing: border-box;
                            padding: 5px;
                            box-shadow: 0 15px 30px rgba(0 ,0 ,0,.2);
                            border: 1px solid rgba(255 ,255, 255,.45);
                            border-radius: 3px;
                            -webkit-border-radius: 3px;
                            -moz-border-radius: 3px;
                            -ms-border-radius: 3px;
                            -o-border-radius: 3px;
                            }
                        &:nth-of-type(2):hover::after{
                            background:#fff url('../imgs/134.jpg') no-repeat center;
                        }
                        &:nth-of-type(3):hover::after{
                            background:#fff url('../imgs/135.jpg') no-repeat center;
                        }
                        &:nth-of-type(2):hover::before{
                            color: #41cc6e;
                        }
                        &:nth-of-type(3):hover::before{
                            color: red;
                        }
                    }
                    span.iconfont{
                        font-size: 26px;
                        cursor: pointer;
                        
                    }
                }
                &_list{

                    li{
                        font-size: 14px;
                        color: #333;
                        cursor: pointer;
                        line-height: 30px;
                        
                    }
                    p{
                        font-size: 14px;
                        color: #333;
                    }
                }
                &:last-of-type{
                    text-align: center;
                }
            }
        }
        .con_right{
            width: 280px;
            height: 225px;
            float: left;
            border-left: 1px solid #9e9e9e;
            h3{
                font-weight: bold;
                text-align: center;
                margin-bottom: 20px;
            }
            ul{
                box-sizing: border-box;
                padding-left: 30px;
                li{
                    line-height: 30px;
                    span{
                        &:first-of-type{
                            font-size: 14px;
                        }
                        &:last-of-type{
                            font-size: 14px;
                            color: #333;
                        }
                    }
                    &:first-of-type{
                        span{
                            &:last-of-type{
                                font-weight: bold;
                            }
                        }
                    }
                }
            }
        }
    }
}

//页脚
.footer{
    background-color: #333;
    height: 70px;
    position: relative;
    z-index: 15;
    &_inner{
        padding-top: 15px;
        text-align: center;
        color: #9e9e9e;
        p{
            font-size: 14px;
            line-height: 20px;
        }
    }
}
//右边侧栏
.right_nav{
    position: fixed;
    right: 0;
    top: 0;
    width: 40px;
    background-color: rgba(255 ,255, 255,.45);
    border-left:1px solid #e7e7e7;
    height: 100%;
    z-index: 1;
    &_item{
        position: absolute;
        width: 100%;
        left:0;
        text-align: center;
        cursor: pointer;
        &:first-of-type{
            top:360px;
        }
        &:nth-of-type(2){
            top: 420px;
        }
        &:nth-of-type(3){
            top: 480px;
        }
        
        i{
            display: inline-block;
            font-size: 30px;
            color: #41cc6e;
            &:hover{
                color: #f4c332;
            }
        }
        &:last-of-type{
            bottom: 100px;
            i{
                display: inline-block;
                font-size: 30px;
                color: #f5c228;
                &:hover{
                    color: #41cc6e;
                }
            }
        }
    }
    .last{
        top: 180px;
        i{
            color: #f5c228;
            &:hover{
            color: #41cc6e;
            }
        }
        
    }
}

//登录注册模块
.index_mask{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0 ,0, 0,.3);
    z-index: 999;
    .login{
        position: absolute;
        width: 360px;
        height: 300px;
        background-color: #fff;
        border-radius: 3px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        -ms-border-radius: 3px;
        -o-border-radius: 3px;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        margin: auto;
        box-sizing: border-box;
        padding: 30px;
        .close_btn{
            position: absolute;
            box-sizing: content-box;
            background-color: #fff;
            right: 10px;
            top: 15px;
            width: 20px;
            height: 20px;
            text-align: center;
        }
        .iconfont{
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            opacity: .4;
            &:hover{
                opacity: .8;
            }
        }
        &_top{
            text-align: center;
            h3{
                font-size: 16px;
                line-height: 26px;
                display: inline-flex;
                span{
                    position: relative;
                    font-size: 20px;
                    font-weight: bold;
                    color: #333;
                    margin: 0 20px;
                    cursor: pointer;
                    &::after{
                        content: "";
                        display: block;
                        position: absolute;
                        background-color: #41c76d;
                        bottom: -5px;
                        left: 0;
                        height: 2px;
                        width: 0;
                        transition:width .4s ;
                        -webkit-transition:width .4s ;
                        -moz-transition:width .4s ;
                        -ms-transition:width .4s ;
                        -o-transition:width .4s ;
                    }
                    &:hover{
                        color: #41c76d;
                        &::after{
                            width: 100%;
                        }
                    }
                }
                .cur_style{
                    color: #41c76d;
                }
            }
            input{
                border-radius: 3px;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                -ms-border-radius: 3px;
                -o-border-radius: 3px;
            }
            .mes{
                margin-top: 30px;
                input[type="text"]{
                    border: 1px solid #ddd;
                    box-sizing: border-box;
                    height: 42px;
                    text-indent: 1em;
                    width: 100%;
                }
                div{
                    border: 1px solid #ddd;
                    margin-top: 20px;
                    input[type="text"]{
                        width: 179px;
                        border: none;
                        float: left;
                        height: 40px;
                    }
                    input[type="button"]{
                        box-sizing: content-box;
                        border: none;
                        height: 40px;
                        width: 119px;
                        display: inline-block;
                        color: #41cc6e;
                    }
                }
            }
            .count360{
                display: none;
                margin-top: 30px;
                input{
                    width: 100%;
                    height: 42px;
                    text-indent: 1em;
                    border: 1px solid #ddd;
                    box-sizing: border-box;
                    &:last-of-type{
                        margin-top: 20px;
                    }
                }
            }

        }
        &_box{
            margin-top: 20px;
            input{
                width: 100%;
                height: 40px;
                text-align: center;
                cursor: pointer;
                font-size: 18px;
                color: #fff;
                background-color: #41c76d;
                transition: all .3s;
                -webkit-transition: all .3s;
                -moz-transition: all .3s;
                -ms-transition: all .3s;
                -o-transition: all .3s;
                &:hover{
                    background-color: #f4c332;
                }
                border-radius: 3px;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                -ms-border-radius: 3px;
                -o-border-radius: 3px;
            }
            .login_tool{
                a{
                    color: #666;
                    &:last-of-type{
                        float: right;
                    }
                    &:hover{
                        color: #41cc6e;
                    }
                }
            }
        }
    }
    .register{
        position: absolute;
        width: 360px;
        height: 410px;
        background-color: #fff;
        border-radius: 3px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        -ms-border-radius: 3px;
        -o-border-radius: 3px;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        margin: auto;
        box-sizing: border-box;
        padding: 30px;
        .close_btn{
            position: absolute;
            box-sizing: content-box;
            background-color: #fff;
            right: 10px;
            top: 15px;
            width: 20px;
            height: 20px;
            text-align: center;
        }
        .iconfont{
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            opacity: .4;
        }
        &_top{
            text-align: center;
            h3{
                font-size: 16px;
                line-height: 26px;
                display: inline-flex;
                margin-bottom: 10px;
                span{
                    position: relative;
                    font-size: 20px;
                    font-weight: bold;
                    color: #41c76d;
                    margin: 0 20px;
                    cursor: pointer;
                }
            }
            input{
                height: 40px;
            }
            .ipt_out{
                position: relative;
                overflow: hidden;
                box-sizing: border-box;
                line-height: 40px;
                border: 1px solid #ddd;
                border-radius: 3px;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                -ms-border-radius: 3px;
                -o-border-radius: 3px;
                margin-bottom: 10px;
                .iconfont{
                    position: absolute;
                    left: 20px;
                    display: inline-block;
                    vertical-align: middle;
                }
                input[type='tel'],input[type='password']{
                    width: 172px;
                }
                
            }
            .mes_out{
                input[type="text"]{
                    width: 114px;
                    float: left;
                    margin-left: 64px;
                }
                input[type="button"]{
                    width: 120px;
                    float: left;
                    color: #41cc6e;
                    cursor: pointer;
                }
            }

            p{
                font-size: 12px;
                input{
                    float: left;
                }
                a{
                    font-size: 12px;
                    color: #41cc6e;
                    margin: 0 4px;
                }
            }
            .code_test{
                overflow: hidden;
                .ipt_out{
                    width: 176px;
                    float: left;
                    input{
                        width: 80px;
                        margin-left: 34px;
                    }
                }
                img{
                    float: left;
                    margin-left: 10px;
                    height: 40px;
                    border: 1px solid #ddd;
                    border-radius: 3px;
                    -webkit-border-radius: 3px;
                    -moz-border-radius: 3px;
                    -ms-border-radius: 3px;
                    -o-border-radius: 3px;
                }
            }
        }
        &_box{
            input{
                cursor: pointer;
                width: 100%;
                height: 40px;
                text-align: center;
                font-size: 18px;
                color: #fff;
                background-color: #41c76d;
                transition: all .3s;
                -webkit-transition: all .3s;
                -moz-transition: all .3s;
                -ms-transition: all .3s;
                -o-transition: all .3s;
                &:hover{
                    background-color: #f4c332;
                }
                border-radius: 3px;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                -ms-border-radius: 3px;
                -o-border-radius: 3px;
            }
            .register_tool{
                overflow: hidden;
                span{
                    font-size: 12px;
                    float: left;
                    margin-left: 190px;
                    line-height: 40px;
                }
                
                a{  
                    color: #41cc6e;
                     float: right;
                    
                }
            }
        }
    }
}